<!DOCTYPE html>
<html lang="en" ng-app="app">


<title>Title</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">




<!--angularjs框架引入开始-->
<script type='text/javascript' src='lib/angularjs/angular.js' charset='utf-8'></script>
<script type='text/javascript' src='js/app.js' charset='utf-8'></script>
<script type='text/javascript' src='js/controller.js' charset='utf-8'></script>
<script type='text/javascript' src='js/routes.js' charset='utf-8'></script>
<script type='text/javascript' src='js/service.js' charset='utf-8'></script>
<script type='text/javascript' src='lib/angularjs/angular-ui/angular-ui-router.js' charset='utf-8'></script>
<script type='text/javascript' src='lib/jquery/jquery-1.4.2.min.js' charset='ut-8'></script>

<!--angularjs框架引入结束-->

<!--引入公共的js和css开始-->
<link rel="stylesheet" href="css/AllPage.css">
<script src="js/AllPage.js"></script>
<!--引入公共的js和css结束-->

<!--sui mobile引入 开始-->
<link rel="stylesheet" type="text/css" href="lib/suiMobile/sm.css">
<link rel="stylesheet" href="lib/suiMobile/sm-extend.css">
<!--sui mobile引入 结束-->


<!--页面图标依赖开始-->
<link rel="stylesheet" href="css/font-awesome.css">
<!--页面图标依赖结束-->


<!-- oclazyload 页面动态加载css start-->
<script src="lib/ocLazyLoad/ocLazyLoad.js"></script>
<!-- oclazyload 页面动态加载css  end-->
</head>
<body>
<!--内容展示-->
    <div ui-view>

    </div>
</body>

<script type='text/javascript' src='lib/suiMobile/zepto.js' charset='utf-8'></script>
<script type='text/javascript' src='lib/suiMobile/sm.js' charset='utf-8'></script>
<script type='text/javascript' src='lib/suiMobile/sm-extend.js' charset='utf-8'></script>
<script>
    var myObj = {}
    myObj.isPlusReady = false;
    // 扩展API加载完毕后调用onPlusReady回调函数
    document.addEventListener("plusready", onPlusReady, false);
    // 扩展API加载完毕，现在可以正常调用扩展API
    function onPlusReady() {
        myObj.isPlusReady = true;
        var isPreToExitOne = false;
        var isPreToExitTwo = false;
        plus.key.addEventListener('backbutton', function () {
            if (isPreToExitTwo) {
                plus.runtime.quit();
            }
            if (!isPreToExitOne) {
                myObj.backEvent();
                isPreToExitOne = true;
                window.setTimeout(function () {
                    isPreToExitOne = false;
                }, 500)
            } else {
                isPreToExitTwo = true;
                window.setTimeout(function () {
                    isPreToExitTwo = false;
                }, 1500);
                $.toast('再次按返回键退出', 1500, 'toastToBot');
            }
        }, false);
    }
    myObj.backEvent =function () {
        history.back()
    }

</script>
</body>
</html>